package org.summer.lawyer.domain.vo.legaldocument;

import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.summer.common.mybatis.core.domain.BaseEntitySearch;
import org.summer.lawyer.domain.LegalDocument;

import java.io.Serial;
import java.util.Date;


/**
 * 用户协议视图对象 legal_document
 *
 * @author summer
 * @date 2024-06-16
 */
@Schema(title ="用户协议视图对象 legal_document", description = "用户协议视图对象 legal_document")
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = LegalDocument.class)
public class LegalDocumentVo extends BaseEntitySearch {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 协议ID
     */
    @Schema(title = "id", type = "Long", description = "协议ID")
    private Long id;

    /**
     * 文档类型，(1=隐私政策条款|2服务条款)
     */
    @Schema(title = "docType", type = "String", description = "文档类型，(1=隐私政策条款|2服务条款)")
    private String docType;

    /**
     * 文档标题
     */
    @Schema(title = "title", type = "String", description = "文档标题")
    private String title;

    /**
     * 文档内容
     */
    @Schema(title = "docContent", type = "String", description = "文档内容")
    private String docContent;

    /**
     *  文档版本，用于标识文档的当前版本，方便跟踪变更
     */
    @Schema(title = "docContent", type = "String", description = "文档版本")
    private String version;

    /**
     * 最后更新时间
     */
    @Schema(title = "updateTime", type = "Date", description = "最后更新时间")
    private Date updateTime;

    /**
     * 生效时间
     */
    @Schema(title = "createTime", type = "Date", description = "生效时间")
    private Date createTime;

}
